package com.zry.fertilizer.ui.activity

import com.zry.fertilizer.R
import com.zry.fertilizer.databinding.ActivityBatchCreateBinding
import com.zry.fertilizer.presenter.BatchCreatePresenter
import com.zry.fertilizer.ui.base.BaseActivity
import kotlinx.android.synthetic.main.common_title.*

class BatchCreateActivity : BaseActivity() {
     var batchCreateBinding: ActivityBatchCreateBinding? = null
    private var batchCreatePresenter: BatchCreatePresenter? = null
    override fun getLayoutId(): Int {
        return R.layout.activity_batch_create
    }

    override fun initData() {
        titleCenterText.text = "批次创建"
        commonLeftLinearLayout.setOnClickListener { finish() }
        batchCreateBinding = viewDataBinding as ActivityBatchCreateBinding
        batchCreatePresenter = BatchCreatePresenter(this)
        batchCreateBinding?.handlerClick = batchCreatePresenter


        batchCreatePresenter?.getProductList()
    }
}
